<template>
	<view>
		{{userInfo.count}}
		<button @click="handle">图片</button>
		<button @click="request">请求</button>
	</view>
</template>

<script setup>
	import {
		uploadImg
	} from "@/utils/authorization.js"
	import {
		loginApi
	} from "@/api/login.js"
	import {
		useUserStore
	} from "@/stores/user.js";
	const userInfo = useUserStore()
	const handle = async () => {
		let res = await uploadImg()
	}
	const request = () => {
		loginApi().then(res => {

		})
	}
</script>